package com.wangjiyuan.shiwupai.mine.activitiy;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;

import com.wangjiyuan.shiwupai.R;
import com.wangjiyuan.shiwupai.base.BaseActivity;

public class MyPhotoActivity extends BaseActivity implements View.OnClickListener{

    private ImageView img_myPhoto_back, img_myPhoto_praise;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_photo);

        initView();
    }

    private void initView() {
        img_myPhoto_back = (ImageView) findViewById(R.id.img_myPhoto_back);
        img_myPhoto_praise = (ImageView) findViewById(R.id.img_myPhoto_praise);

        img_myPhoto_back.setOnClickListener(this);
        img_myPhoto_praise.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.img_myPhoto_back:
                finish();
                break;
            case R.id.img_myPhoto_praise:
                Intent intent = new Intent(MyPhotoActivity.this, PraiseActivity.class);
                startActivity(intent);
                break;
        }
    }
}
